package com.youlu.campus.service.platform;

import com.youlu.campus.entity.PlatformUserComplaint;
import com.youlu.campus.entity.VO.req.PlatformUserComplaintQueryVO;
import org.springframework.data.domain.Page;

import java.util.HashMap;

public interface PlatformUserComplaintService {

    boolean create(PlatformUserComplaint req);

    Page<PlatformUserComplaint> list(PlatformUserComplaintQueryVO req);

    PlatformUserComplaint findOne(String id);

    boolean update(PlatformUserComplaint req);

    /**
     * 获取未读消息数量
     *
     * @param userId
     * @return
     */
    Long unReadMsgCount(String userId);

    /**
     * 投诉统计
     *
     * @param createType
     * @return
     */
    HashMap<String, Long> statistics(String createType);
    /**
     * 删除用户投诉
     *
     * @param id
     * @return
     */
    boolean delete(String id);
}
